﻿<Window x:Class="FM.校时.客户端.Views.主窗口"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="校时客户端"
        Width="300"
        Height="220">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />

        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0"
                   Grid.Column="0"
                   Grid.ColumnSpan="2"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   FontSize="24"
                   Text="2014-10-1 星期三"
                   ToolTip="当前时间">
            <TextBlock.Foreground>
                <SolidColorBrush Color="#FF2881EC" />
            </TextBlock.Foreground>
        </TextBlock>
        <TextBlock Grid.Row="1"
                   Grid.Column="0"
                   Grid.ColumnSpan="2"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   FontSize="69"
                   Text="12:12:12"
                   ToolTip="当前时间">
            <TextBlock.Foreground>
                <SolidColorBrush Color="#FF2881EC" />
            </TextBlock.Foreground>
        </TextBlock>

        <TextBlock Grid.Row="2"
                   Grid.Column="0"
                   Margin="73,12"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   Text="{Binding 时间服务器}" />
        <Button Grid.Row="2"
                Grid.Column="1"
                Width="100"
                Height="30"
                Margin="23,5"
                Command="{Binding 同步时间}"
                Content="校准时间"
                ToolTip="立即更新本机时间" />

        <TextBlock Grid.Row="3"
                   Grid.RowSpan="2"
                   Grid.Column="1"
                   Margin="0,5,146,4"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   Text="{Binding 通讯状态}" />


    </Grid>
</Window>
